<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C# API Reference for Windows: JCSDK.JCMediaDevice.JCMediaDeviceVideoCanvas类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C# API Reference for Windows
   &#160;<span id="projectnumber">2.3.3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_j_c_s_d_k.html">JCSDK</a></li><li class="navelem"><a class="el" href="namespace_j_c_s_d_k_1_1_j_c_media_device.html">JCMediaDevice</a></li><li class="navelem"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JCSDK.JCMediaDevice.JCMediaDeviceVideoCanvas类 参考<div class="ingroups"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html">设备模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a152fe984cb50e587336e4f29119a4b85"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html#a152fe984cb50e587336e4f29119a4b85">replace</a> (string <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html#af07e10d341a8cdf2638efe3eea64605a">videoSource</a>)</td></tr>
<tr class="separator:a152fe984cb50e587336e4f29119a4b85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f24f4dc27dc9d511b8e160ea0b84dcc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html#a6f24f4dc27dc9d511b8e160ea0b84dcc">pause</a> ()</td></tr>
<tr class="separator:a6f24f4dc27dc9d511b8e160ea0b84dcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8c3528fbef57d436e2a44b736b9789d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html#ae8c3528fbef57d436e2a44b736b9789d">resume</a> ()</td></tr>
<tr class="separator:ae8c3528fbef57d436e2a44b736b9789d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68a7cfa35bcbb32e3e7a727745ce403c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html#a68a7cfa35bcbb32e3e7a727745ce403c">rotate</a> (<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gab06d080ba6becb6103dd74f19d0e9403">JCMediaDeviceVideoCanvasRoatate</a> angle)</td></tr>
<tr class="separator:a68a7cfa35bcbb32e3e7a727745ce403c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb868014ddb8e8b81d82afaf2a489db6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html#afb868014ddb8e8b81d82afaf2a489db6">JCMediaDeviceVideoCanvas</a> (string <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html#af07e10d341a8cdf2638efe3eea64605a">videoSource</a>, ZmfVideo.RenderMode rendermode)</td></tr>
<tr class="separator:afb868014ddb8e8b81d82afaf2a489db6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7745edaa6bb03883fbc09ac92b2f986a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html#a7745edaa6bb03883fbc09ac92b2f986a">switchCamera</a> (string camera)</td></tr>
<tr class="separator:a7745edaa6bb03883fbc09ac92b2f986a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafb0eba0f8335a453f853a0ae7505987"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html#aafb0eba0f8335a453f853a0ae7505987">snapshot</a> (int width, int height, string filePath)</td></tr>
<tr class="separator:aafb0eba0f8335a453f853a0ae7505987"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:a4ee80cd5da06bcb6ab2fe1845f08c29f"><td class="memItemLeft" align="right" valign="top">Object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html#a4ee80cd5da06bcb6ab2fe1845f08c29f">customData</a><code> [get, set]</code></td></tr>
<tr class="separator:a4ee80cd5da06bcb6ab2fe1845f08c29f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af07e10d341a8cdf2638efe3eea64605a"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html#af07e10d341a8cdf2638efe3eea64605a">videoSource</a><code> [get]</code></td></tr>
<tr class="separator:af07e10d341a8cdf2638efe3eea64605a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae97be4ed2fdf439d93cd1f02b8f22d4a"><td class="memItemLeft" align="right" valign="top">ZmfImageSource&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html#ae97be4ed2fdf439d93cd1f02b8f22d4a">videoView</a><code> [get]</code></td></tr>
<tr class="separator:ae97be4ed2fdf439d93cd1f02b8f22d4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>视频渲染对象 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="afb868014ddb8e8b81d82afaf2a489db6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb868014ddb8e8b81d82afaf2a489db6">&#9670;&nbsp;</a></span>JCMediaDeviceVideoCanvas()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">JCSDK.JCMediaDevice.JCMediaDeviceVideoCanvas.JCMediaDeviceVideoCanvas </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>videoSource</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ZmfVideo.RenderMode&#160;</td>
          <td class="paramname"><em>rendermode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>构造视频渲染对象方法</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">videoSource</td><td>视频源 </td></tr>
    <tr><td class="paramname">rendermode</td><td>渲染模式 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a> 视频陷入对象 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a6f24f4dc27dc9d511b8e160ea0b84dcc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f24f4dc27dc9d511b8e160ea0b84dcc">&#9670;&nbsp;</a></span>pause()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaDevice.JCMediaDeviceVideoCanvas.pause </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>暂停视频渲染 </p>

</div>
</div>
<a id="a152fe984cb50e587336e4f29119a4b85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a152fe984cb50e587336e4f29119a4b85">&#9670;&nbsp;</a></span>replace()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCMediaDevice.JCMediaDeviceVideoCanvas.replace </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>videoSource</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>更新视频渲染标识 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">videoSource</td><td>视频源 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>true：更新成功</li>
<li>false：更新失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ae8c3528fbef57d436e2a44b736b9789d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8c3528fbef57d436e2a44b736b9789d">&#9670;&nbsp;</a></span>resume()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaDevice.JCMediaDeviceVideoCanvas.resume </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>恢复视频渲染 </p>

</div>
</div>
<a id="a68a7cfa35bcbb32e3e7a727745ce403c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68a7cfa35bcbb32e3e7a727745ce403c">&#9670;&nbsp;</a></span>rotate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaDevice.JCMediaDeviceVideoCanvas.rotate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gab06d080ba6becb6103dd74f19d0e9403">JCMediaDeviceVideoCanvasRoatate</a>&#160;</td>
          <td class="paramname"><em>angle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>选择画面</p>
<p>旋转角度，必须是90的倍数，该角度表示与屏幕正方向旋转后的夹角 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">angle</td><td>角度值 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aafb0eba0f8335a453f853a0ae7505987"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafb0eba0f8335a453f853a0ae7505987">&#9670;&nbsp;</a></span>snapshot()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCMediaDevice.JCMediaDeviceVideoCanvas.snapshot </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>filePath</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>视频通话截图 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">width</td><td>截屏宽度像素，-1为视频源像素 </td></tr>
    <tr><td class="paramname">height</td><td>截屏高度像素，-1为视频源像素 </td></tr>
    <tr><td class="paramname">filePath</td><td><b>文件路径，需精确到文件名及格式，例如：/Documents/JuphoonCloud/picture.png。请确保目录存在且可写。</b> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>是否成功<ul>
<li>true: 成功</li>
<li>false: 失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a7745edaa6bb03883fbc09ac92b2f986a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7745edaa6bb03883fbc09ac92b2f986a">&#9670;&nbsp;</a></span>switchCamera()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaDevice.JCMediaDeviceVideoCanvas.switchCamera </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>camera</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>切换摄像头 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">camera</td><td>摄像头标识 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">属性说明</h2>
<a id="a4ee80cd5da06bcb6ab2fe1845f08c29f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ee80cd5da06bcb6ab2fe1845f08c29f">&#9670;&nbsp;</a></span>customData</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Object JCSDK.JCMediaDevice.JCMediaDeviceVideoCanvas.customData</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>自定义数据 </p>

</div>
</div>
<a id="af07e10d341a8cdf2638efe3eea64605a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af07e10d341a8cdf2638efe3eea64605a">&#9670;&nbsp;</a></span>videoSource</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">string JCSDK.JCMediaDevice.JCMediaDeviceVideoCanvas.videoSource</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>渲染标识 </p>

</div>
</div>
<a id="ae97be4ed2fdf439d93cd1f02b8f22d4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae97be4ed2fdf439d93cd1f02b8f22d4a">&#9670;&nbsp;</a></span>videoView</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ZmfImageSource JCSDK.JCMediaDevice.JCMediaDeviceVideoCanvas.videoView</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取视频渲染视图，用于UI显示 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>JCSDK/JCSDK/JCMediaDevice/JCMediaDeviceVideoCanvas.cs</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
